//
//  NRWCarListsModel.h
//  New_Runway
//
//  Created by mack on 2018/1/24.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Result,Region,Market,Brand,Shop,city;
@interface NRWCarListsModel : NSObject

@property (nonatomic, copy) NSString *msg;

@property (nonatomic, strong) NSArray<Result *> *result;

@property (nonatomic, assign) NSInteger code;

@end
@interface Result : NSObject

@property (nonatomic, assign) NSInteger loanBrandId;

@property (nonatomic, strong) NSNumber *ID;

@property (nonatomic, copy) NSString *carEnviron;

@property (nonatomic, assign) NSInteger carSaleTime;

@property (nonatomic, assign) CGFloat carFloorPrice;

@property (nonatomic, copy) NSString *carDisplacement;

@property (nonatomic, strong) Region *region;

@property (nonatomic, assign) NSInteger carDoorNum;

@property (nonatomic, assign) NSInteger carLicenceState;

@property (nonatomic, copy) NSString *carId;

@property (nonatomic, assign) NSInteger carSaleState;

@property (nonatomic, copy) NSString *carSellingPointDesc;

@property (nonatomic, strong) Market *market;

@property (nonatomic, assign) CGFloat carGuidePrice;

@property (nonatomic, copy) NSString *carImageUrl;

@property (nonatomic, copy) NSString *carMortgageDesc;

@property (nonatomic, assign) long long carUpdateTime;

@property (nonatomic, assign) CGFloat carTaxPrice;

@property (nonatomic, assign) NSInteger carLicenceDate;

@property (nonatomic, assign) NSInteger carStockState;

@property (nonatomic, copy) NSString *carTitle;

@property (nonatomic, copy) NSString *carVin;

@property (nonatomic, strong) Brand *brand;

@property (nonatomic, assign) NSInteger carYellowAge;

@property (nonatomic, assign) NSInteger car4sUpkeepState;

@property (nonatomic, copy) NSString *carGearbox;

@property (nonatomic, assign) long long carCreateTime;

@property (nonatomic, copy) NSString *carFuel;

@property (nonatomic, strong) NSNumber *carMileage;

@property (copy, nonatomic) NSString *carMileageString;

@property (nonatomic, assign) NSInteger carTypeId;

@property (nonatomic, assign) NSInteger carAuthState;

@property (nonatomic, assign) NSInteger carKeyNum;

@property (nonatomic, assign) CGFloat carShowPrice;

@property (nonatomic, copy) NSString *carOutColor;

@property (nonatomic, assign) CGFloat carRetailPrice;

@property (nonatomic, copy) NSString *carVin6;

@property (nonatomic, assign) NSInteger modelId;

@property (nonatomic, copy) NSString *marketId;

@property (nonatomic, assign) NSInteger brandId;

@property (nonatomic, copy) NSString *carInColor;

@property (nonatomic, assign) CGFloat carNetworkPrice;

@property (nonatomic, assign) NSInteger seriesId;

@property (nonatomic, copy) NSString *carFlawDesc;

@property (nonatomic, assign) NSInteger carDetectState;

@property (nonatomic, copy) NSString *shopId;

@property (nonatomic, copy) NSString *regionId;

@property (nonatomic, strong) Shop *shop;

@property (nonatomic, assign) NSInteger carOrderState;

@property (nonatomic, assign) NSInteger carRedAge;

@property (nonatomic, copy) NSString *userId;

@property (nonatomic, copy) NSString *carRemark;

@property (nonatomic, assign) BOOL selected;

//add by xy  计算属性
/**< 首次上牌时间(直接返回"年") */
@property (copy, nonatomic) NSString *carLicenceDateString;
/**< 创建时间(直接返回年.月.日) */
@property (copy, nonatomic) NSString *carCreateTimeString;

@property (nonatomic, assign) NSInteger carBargainPriceState;

@property (nonatomic, assign) CGFloat valuationDealerLowBuyPrice;

@property (nonatomic, copy) NSString *valuationFailReason;
@end

@interface Region : NSObject

@property (nonatomic, copy) NSString *marketId;

@property (nonatomic, strong) Market *market;

@property (nonatomic, copy) NSString *regionId;

@end


@interface Market : NSObject
@property (nonatomic, strong) city *city;

@property (nonatomic, copy) NSString *marketId;

@property (nonatomic, copy) NSString *marketName;
@end

@interface city : NSObject
@property (nonatomic, copy) NSString *cityName;

@end

@interface Brand : NSObject

@property (nonatomic, assign) NSInteger brandId;

@property (nonatomic, copy) NSString *brandName;

@end

@interface Shop : NSObject

@property (nonatomic, strong) Market *market;

@property (nonatomic, copy) NSString *shopId;

@property (nonatomic, copy) NSString *shopMobile;

@property (nonatomic, copy) NSString *marketId;

@property (nonatomic, copy) NSString *shopAddress;

@property (nonatomic, copy) NSString *shopLegalMobile;

@property (nonatomic, copy) NSString *shopLegalName;

@property (nonatomic, copy) NSString *shopName;

@property (nonatomic, copy) NSString *shopManageMobile;

@property (nonatomic, copy) NSString *shopManageName;

@end

